import psutil


def getCPUstate(interval=1):
    return [str(psutil.cpu_percent(interval)), psutil.cpu_percent(interval, percpu=True)]


if __name__ == "__main__":
    print(getCPUstate())
